﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Domain.Entities;

/// <summary>
/// 客户表
/// </summary>
public class MdClient : Entity<int>
{
    /// <summary>
    /// 客户编码
    /// </summary>
    [Required]
    [MaxLength(64)]
    public string ClientCode { get; set; } = string.Empty;

    /// <summary>
    /// 客户名称
    /// </summary>
    [Required]
    [MaxLength(255)]
    public string ClientName { get; set; } = string.Empty;

    /// <summary>
    /// 客户简写
    /// </summary>
    [MaxLength(255)]
    public string ClientNick { get; set; } = string.Empty;

    /// <summary>
    /// 客户英文名称
    /// </summary>
    [MaxLength(255)]
    public string ClientEn { get; set; } = string.Empty;

    /// <summary>
    /// 客户简介
    /// </summary>
    [MaxLength(500)]
    public string ClientDesc { get; set; } = string.Empty;

    /// <summary>
    /// 客户类型
    /// ENTERPRISE：企业；PERSON：个人；
    /// </summary>
    [MaxLength(64)]
    public string ClientType { get; set; } = "企业";

    /// <summary>
    /// 客户LOGO
    /// </summary>
    [MaxLength(255)]
    public string ClientLogo { get; set; } = string.Empty;

    /// <summary>
    /// 客户默认送货地点
    /// </summary>
    [MaxLength(500)]
    public string Address { get; set; } = string.Empty;

    /// <summary>
    /// 客户官网地址
    /// </summary>
    [MaxLength(255)]
    public string Website { get; set; } = string.Empty;

    /// <summary>
    /// 客户邮箱
    /// </summary>
    [MaxLength(255)]
    public string Email { get; set; } = string.Empty;

    /// <summary>
    /// 客户电话
    /// </summary>
    [MaxLength(64)]
    public string Tel { get; set; } = string.Empty;

    /// <summary>
    /// 联系人1
    /// </summary>
    [MaxLength(64)]
    public string Contact1 { get; set; } = string.Empty;

    /// <summary>
    /// 联系人1电话
    /// </summary>
    [MaxLength(64)]
    public string Contact1Tel { get; set; } = string.Empty;

    /// <summary>
    /// 联系人1邮箱
    /// </summary>
    [MaxLength(255)]
    public string Contact1Email { get; set; } = string.Empty;

    /// <summary>
    /// 联系人2
    /// </summary>
    [MaxLength(64)]
    public string Contact2 { get; set; } = string.Empty;

    /// <summary>
    /// 联系人2电话
    /// </summary>
    [MaxLength(64)]
    public string Contact2Tel { get; set; } = string.Empty;

    /// <summary>
    /// 联系人2邮箱
    /// </summary>
    [MaxLength(255)]
    public string Contact2Email { get; set; } = string.Empty;

    /// <summary>
    /// 统一社会信用代码
    /// </summary>
    [MaxLength(64)]
    public string CreditCode { get; set; } = string.Empty;

    /// <summary>
    /// 备注
    /// </summary>
    [MaxLength(500)]
    public string Remark { get; set; }=string.Empty;

    /// <summary>
    /// 创建人
    /// </summary>
    [MaxLength(64)]
    public string? CreateBy { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 更新人
    /// </summary>
    [MaxLength(64)]
    public string? UpdateBy { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }
}

